package types

// 新增请求参数
// json标签中不加参数optional，在使用form-data提交的时候提示参数没有设置，不管是否已设置都报这个
type AccountAddRequest struct {
	Username       string `json:"username,optional" form:"username,optional"`
	Name           string `json:"name,optional" form:"name,optional"`
	Mobile         string `json:"mobile,optional" form:"mobile,optional"`
	Title          string `json:"title,optional" form:"title,optional"`
	Email          string `json:"email,optional" form:"email,optional"`
	Avatar         string `json:"avatar,optional" form:"avatar,optional"`
	IsCash         int8   `json:"is_cash,optional" form:"is_cash,optional"`
	CreatePersonId uint16 `json:"create_person_id,optional" form:"create_person_id,optional"`
	Note           string `json:"note,optional" form:"note,optional"`
}

// 登录请求参数
type AccountLoginRequest struct {
	Username  string `json:"username,optional" form:"username,optional"`
	Password  string `json:"password,optional" form:"password,optional"`
	Mobile    string `json:"mobile,optional" form:"mobile,optional"`
	Code      string `json:"code,optional" form:"code,optional"`
	Answer    string `json:"answer,optional" form:"answer,optional"`
	CaptchaId string `json:"captcha_id,optional" form:"captcha_id,optional"`
}
